import Mock from 'mockjs'

Mock.mock('/api/list', {
	code: 200,
	"data|10-20": [{
		'url': '@image(100x100, @color)',
		'banners|10-20': ['@image(100x100, @color)'],
		'title': '@ctitle',
		'desc': '@cword(10, 30)',
		'id': '@id',
		'price|10-1000': 1,
		'mess|2-10': [{
			'nickname': '@cname',
			'datetime': '@datetime',
			'content': '@cword(10,20)',
			'id': '@id',
		}]
	}]
})